package com.example.pattern.factoryMethod;

/**
 * 应用
 *
 * @author FM_南风
 * @date 2024/6/23
 */
public class FactoryMethodClient {
     public static void main(String[] args) {
      FactoryMethod factoryA = new FactoryMethodA();
      FactoryMethodWorkshop productA = factoryA.product();
      productA.produce();

      FactoryMethod factoryB = new FactoryMethodB();
      FactoryMethodWorkshop productB = factoryB.product();
      productB.produce();
     }
}
